import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) { 
            String str = in.nextLine();
            for(int i = 0; i < str.length(); i++){
                char ch = str.charAt(i);
                if(ch == '_') continue;
                if(i > 0 && str.charAt(i-1) == '_'){
                    System.out.print((char)(ch - 32));
                }else{
                    System.out.print(ch);
                }
            }
            System.out.println();
        }
    }
}